import request from '@/utils/request'

// 宝妈分类列表
export function ns_categoryList(params) {
  return request({
    url: '/mapi/ns_category/list',
    method: 'get',
    params
  })
}

// 宝妈分类详情
export function carestoreInfo(params) {
  return request({
    url: '/mapi/carestore/info',
    method: 'get',
    params
  })
}

// 宝妈分类编辑
export function ns_categoryEdit(data) {
  return request({
    url: '/mapi/ns_category/edit',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 删除
export function carestoreDelete(params) {
  return request({
    url: '/mapi/carestore/delete',
    method: 'post',
    params
  })
}
